<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- 引入Vue -->
    <script type="text/javascript" src="../js/vue.js"></script>
</head>

<body>
    <!-- 准备一个容器 -->
    <div id="root">
        <h2>{{name}}</h2>
        <h2>{{address}}</h2>
    </div>
</body>
<script type="text/javascript">
    Vue.config.productionTip = false; //阻止vue在启动时产生产提示

    let vm = new Vue({
        el: '#root',
        data() {
            return {
                name: '尚硅谷',
                address: '北京',
                student: {
                    name: 'tom',
                    age: {
                        rage: 12,
                        sage: 18,
                    },
                    friends: [
                        {name: 'jerry',age:35},
                        {name: 'tony',age:36}
                    ]
                }
            }
        }
    })
</script>

</html>